package com.zq.ssmdemo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zq.ssmdemo.pojo.DtoUpdateLL;
import com.zq.ssmdemo.pojo.Employees;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.nio.file.Path;
import java.util.List;

/**
 * <p>
 * 员工信息表 Mapper 接口
 * </p>
 *
 * @author 张乔
 * @since 2024-06-09
 */
@Mapper
public interface EmployeesMapper extends BaseMapper<Employees> {


    @Update("update employees set Username = #{Username} where Employee_id=#{EmployeeId}")
    void updateByIdss(Employees employees);

    @Delete("delete from employees where Employee_id=#{id}")
    void deleteByIdss(int id);

@Update("update employees set Username = #{Username},Gender=#{Gender}," +
        "email=#{email},avatar=#{avatar},Position=#{Position}" +
        " where Employee_id=#{EmployeeId}")
    void updateByIdsss(DtoUpdateLL employees);
}
